//
//  CircleOfPetCollectionReusableView.m
//  LoveOfPet
//
//  Created by 芦彬 on 15/11/14.
//  Copyright © 2015年 孔维. All rights reserved.
//

#import "CircleOfPetCollectionReusableView.h"
#import "LuBDefine.h"

@implementation CircleOfPetCollectionReusableView

- (void)dealloc{
    [_titleLabel release];
    [_detailBtn release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.titleLabel = [[UILabel alloc]init];
        [self addSubview:_titleLabel];
        [_titleLabel release];
        
        self.detailBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        _detailBtn.frame = CGRectMake(WIDTH - 50, 0, 50, 30);
        [self addSubview:_detailBtn];
    }
    return  self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.titleLabel.frame = CGRectMake(10, 10, 150, 30);
    self.titleLabel.textColor = [UIColor grayColor];
    self.titleLabel.font = [UIFont systemFontOfSize:15];

    self.detailBtn.frame = CGRectMake(WIDTH - 50, 10, 50, 30);
    self.detailBtn.titleLabel.font = [UIFont systemFontOfSize: 14];
    [self.detailBtn setTitle:@"更多>" forState:UIControlStateNormal];
    [self.detailBtn setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
}

@end
